package com.yanqu.xiuxian.crosssystem.manger.elementalbonds.data;

public class ElementalBondsCardData {
    private int cardId;
    private int cardMp;
    private int cardMaxMp;

    private int turnUseTimes = 0;

    public ElementalBondsCardData() {
    }

    public ElementalBondsCardData(int cardId, int cardMp, int cardMaxMp) {
        this.cardId = cardId;
        this.cardMp = cardMaxMp;
        this.cardMaxMp = cardMaxMp;
    }

    public void addTurnUseTimes() {
        this.turnUseTimes++;
    }

    public void turnReset() {
        turnUseTimes = 0;
    }

    public void addMp(int addValue) {
        this.cardMp += addValue;
        if (this.cardMp > this.cardMaxMp) {
            this.cardMp = this.cardMaxMp;
        }
    }

    public int getCardId() {
        return cardId;
    }

    public void setCardId(int cardId) {
        this.cardId = cardId;
    }

    public int getCardMp() {
        return cardMp;
    }

    public void setCardMp(int cardMp) {
        this.cardMp = cardMp;
    }

    public int getCardMaxMp() {
        return cardMaxMp;
    }

    public void setCardMaxMp(int cardMaxMp) {
        this.cardMaxMp = cardMaxMp;
    }

    public int getTurnUseTimes() {
        return turnUseTimes;
    }

    public void setTurnUseTimes(int turnUseTimes) {
        this.turnUseTimes = turnUseTimes;
    }

}
